package com.fx.config;

import com.fx.common.intercept.AuthBearerIntercept;
import com.fx.common.session.ExceptionHandler;
import com.fx.common.session.ResponseExceptionHandler;
import com.fx.common.session.SessionManage;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RetrofitConfig {

    @Bean
    public AuthBearerIntercept authBearerIntercept(SessionManage sessionManage,
                                                   ExceptionHandler exceptionHandler,
                                                   ResponseExceptionHandler responseExceptionHandler){
        return new AuthBearerIntercept(sessionManage,exceptionHandler,responseExceptionHandler);
    }

}
